$(function(){
	//表格行，鼠标放上去变色
	$(".tr:odd").css("background", "#FFFCEA");
	$(".tr:odd").each(function(){
		$(this).hover(function(){
			$(this).css("background-color", "#FFE1FF");
		}, function(){
			$(this).css("background-color", "#FFFCEA");
		});
	});
	$(".tr:even").each(function(){
		$(this).hover(function(){
			$(this).css("background-color", "#FFE1FF");
		}, function(){
			$(this).css("background-color", "#fff");
		});
	}); 

	/*ie6,7下拉框美化*/
    if ( $.browser.msie ){
    	if($.browser.version == '7.0' || $.browser.version == '6.0'){
    		$('.select').each(function(i){
			   $(this).parents('.select_border,.select_containers').width($(this).width()+5); 
			 });
    		
    	}
    }
 
});

function getScTime(hour) {
    var tell;
    if (hour < 6) {
        tell = "凌晨";
    } else if (hour < 9) {
        tell = "早上";
    } else if (hour < 12) {
        tell = "上午";
    } else if (hour < 14) {
        tell = "中午";
    } else if (hour < 17) {
        tell = "下午";
    } else if (hour < 19) {
        tell = "傍晚";
    } else if (hour < 22) {
        tell = "晚上";
    } else {
        tell = "深夜";
    }
    return tell;
}
function getNowTime() {
    var date = new Date();
    var year = date.getFullYear();
    var month = date.getMonth() + 1;
    var day = date.getDate();
    var hour = date.getHours();
    var tell = getScTime(hour);
    hour = hour < 10 ? "0" + hour : hour;
    var minute = date.getMinutes();
    minute = minute < 10 ? "0" + minute : minute;
    var second = date.getSeconds();
    second = second < 10 ? "0" + second : second;
    var week = ' 星期' + '日一二三四五六'.charAt(date.getDay());
    return year + '年' + month + '月' + day + '日 ' + tell + ' ' + hour + ':'
            + minute + ':' + second + ' ' + week;
}
